<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[#include "/webpage/common/common_css.html"/]
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="${cache}/images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="${cache}/images/tab_05.gif">
        <img src="${cache}/images/311.gif" width="16" height="16" /> 
		    <span class="STYLE4">${title}</span></td>
        <td width="281" background="${cache}/images/tab_05.gif" style="text-align:right;cursor:pointer" 
             onclick="location.href='${base}/activityManager.do';" 
         >
              <img src="${cache}/images/002.gif" width="14" height="14" />
              <label style="font-size:12px;">返回</label>
        </td>
        <td width="14"><img src="${cache}/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table>
	</td>
  </tr>
  <tr>
    <td>
	   <table width="100%" border="0" cellspacing="0" cellpadding="0" >
       <tr style="height:20px;">
        <td width="9" background="${cache}/images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#f3ffe3" style="width:20%"></td>
        <td bgcolor="#f3ffe3" ></td>
        <td width="9" background="${cache}/images/tab_16.gif">&nbsp;</td>
      </tr>
      <tr>
        <td width="9" background="${cache}/images/tab_12.gif">&nbsp;</td>
         <td bgcolor="#f3ffe3" style="width:10%"></td>
        <td bgcolor="#f3ffe3">  
                <form id="activityForm" method="post"  action="${base!}/${action!}"> 
                <input type="hidden" name="activity*id" id="activityId"
                 value="[#if activity.id?exists&&activity.id>0]${activity.id!}[/#if]" /> 
                  <table style="width:100%;font-size:12px;" cellspacing="5px" cellpadding="5px">
                       <tr>
                          <td style="text-align:right">作业代码:</td>
                          <td style="text-align:left">
                            <input name="activity*menuCode" id="menuCode"  value="${activity.menuCode!}"/>
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">作业名称:</td>
                          <td style="text-align:left">
                              <input name="activity*menuName" id="menuName"  value="${activity.menuName!}"/>
                          </td>
                       </tr>
                       <tr>
                          <td style="text-align:right">作业描述:</td>
                          <td style="text-align:left">
                              <textarea name="activity*menuDesc" cols="30" rows="4">${activity.menuDesc!}</textarea>
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">状态:</td>
                          <td style="text-align:left">
                              <input type="checkbox" name="activity*menuVisible" id="menuVisibleInfo" value="Y" 
                              [#if activity.menuVisible?exists&&activity.menuVisible='Y']checked[/#if]>是否在作业管理器可见
                          </td>
                       </tr>
                       <tr>
                          <td style="text-align:right">作业类型:</td>
                          <td style="text-align:left">
                             <select name="activity*menuType" style="width:150px">  
                                     [#list ActivityType as ac]
                                        <option value="${ac.value!}" 
                                        [#if activity.menuType?exists&&activity.menuType=ac.value]selected[/#if]
                                        >${ac.name!}</option>
                                     [/#list]
                                  </select>
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">作业路径:</td>
                          <td style="text-align:left">
                              <input name="activity*menuUrl" value="${activity.menuUrl!}">
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">父作业:</td>
                          <td style="text-align:left">
                               <select name="activity*menuPid" style="width:150px">
                                     <option value="-1" selected="true">请选择父作业</option>
                                     [#list PactivityList as ac]
                                        <option value="${ac.id!}"
                                        [#if activity.menuPid?exists&&activity.menuPid=ac.id]selected[/#if]
                                        >${ac.menuName!}</option>
                                     [/#list]
                                  </select>
                          </td>
                       </tr>
                        <tr style="height:15px;">
                          <td colspan="2">
                          </td>
                       </tr> 
                        <tr>
                          <td style="width:15%"></td>
                          <td>
                              <input type="button" value="保存" onclick="saveActivity()" />
                                &nbsp;&nbsp;
                               <input type="reset" value="重置"/>
                          </td>
                       </tr> 
                    </table>
               </form> 
        </td>
        <td width="9" background="${cache}/images/tab_16.gif">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr height="30">
        <td width="15" >
        <img src="${cache}/images/tab_20.gif" width="15"   /></td>
        <td background="${cache}/images/tab_21.gif" style="text-align:center"> 
        </td>
        <td width="14"><img src="${cache}/images/tab_22.gif" width="14"  /></td>
      </tr> 
</table>
[#include "/webpage/common/common_js.html"/]
<script type="text/javascript" src="${cache}/js/activity/activity.js"></script> 
</body>
</html>
